import request from '../utils/request';

//登录
export function login (param) {
    return request({
        method: 'post',
        url: '/emp/login',
        data: param
    });
};

export function phoneLogin (param) {
    return request({
        method: 'post',
        url: '/emp/phoneLogin',
        data: param
    });
};

export function changePassword (empId,password,newPassword,code,phone) {
    return request({
        method: 'post',
        url: '/emp/changePassword?empId='+empId+'&password='+password+'&newPassword='+newPassword+'&code='+code+'&phone='+phone,
    });
};

